package com.team5101.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CreateUtil {


    /**
     *  生成订单编号
     * @return
     */
    public static String createOrderNumber(){
        //1.当前时间的时分秒
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        String strformat = sdf.format(new Date());
        //2.随机数
        int random =(int) (Math.random() * 100);
        return strformat + random;
    }
}
